<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>		
		<script>
			window.onload=function(){
				var btn=document.getElementById("btn");
				btn.onclick=function(){
					alert("altKey："+window.event.altKey
			 		 +"\nshiftKey："+window.event.shiftKey
			 		 +"\nctrlKey："+window.event.ctrlKey);
				}
				window.onkeydown=function(){
					alert(window.event.keyCode);
				}
			}
		</script>
	</head>
	<body>
		<input id="btn" type="button" value="点击"/>
	</body>
</html>
